package dao.jpa;

import java.util.List;

import vo.QQ;
import vo.User;
import dao.QQDAO;

public class QQDAOJpaImpl extends GenericDaoJpaImpl<QQ, Long> implements QQDAO {

	public QQDAOJpaImpl() {
		super(QQ.class);
	}

	public List<QQ> findAll() {
		return super.executeFinder("QQ.findAll");
	}
	public QQ findBySourceId(int sourceId) {
		return super.executeSingleFinder("QQ.findBySourceId",sourceId);
	}

	public QQ getById(long id) {
		return super.read(id);
	}

	public void update(long id) {
		QQ qq = super.read(id);
		super.update(qq);
	}

	public void delete(long id)// 真正删除 
	{
		QQ qq = super.read(id);
		super.delete(qq);
	}

}
